home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / Drivers / vc_2_2.lha / ParNet / Source / stream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-02  |  1015 b   |  38 lines

  1. /*
  2. ** $Header: SRC:CVSROOT/Vector/ParNet/stream.h,v 1.1.1.1 1994/06/23 02:39:40 Barnard Exp $
  3. */
  4.  
  5. /*
  6. ** This code was originally written by Matthew Dillon and put into Public Domain
  7. **
  8. ** All changes concerning the adaption of Matt's original code to the
  9. ** Vector Connection I/O board are © 1991-1994 by Henning Schmiedehausen
  10. ** All rights for this changes are reserved. The original code is Public Domain
  11. **
  12. ** This code is distributed with the expressed written permission of Matthew
  13. ** Dillon (Thank you very much, Matt)
  14. **
  15. */
  16.  
  17. /*
  18.  *  STREAM.H
  19.  */
  20.  
  21. #define ST_DONE     0   /*    no state            */
  22. #define ST_CONNECT1    1   /*    connect request      & ToPort    */
  23. #define ST_CONNECT2    2   /*    request acknowledged & FromPort */
  24. #define ST_CONNECTD    3   /*    connect - data, begin stream    */
  25. #define ST_CONNECTF    4   /*    connect - fail            */
  26.  
  27. #define ST_RMASK    0xF0    /*  retry   */
  28. #define ST_RINCR    0x10
  29. #define ST_RMAX     0x20
  30.  
  31. typedef struct {
  32.     ubyte   Cmd;
  33.     ubyte   Reserved;
  34.     uword   MyPort;
  35.     uword   YourPort;
  36. } StreamCmd;
  37.  
  38.